package com.example.happiness.service.admin.Impl;

import com.example.happiness.mapper.AdminMapper;
import com.example.happiness.pojo.Admin;
import com.example.happiness.service.admin.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
    AdminMapper manageMapper;

    @Override
    public Admin adminLogin(Admin admin) {
        return manageMapper.selectByPrimaryKey(admin.getManageid());
    }
}
